var t = require("miniprogram-computed").behavior, e = getApp();

Component({
    behaviors: [ t ],
    options: {
        multipleSlots: !0
    },
    externalClasses: [ "title-class" ],
    properties: {
        showBorderBottom: {
            type: Boolean,
            value: !0
        },
        bgColor: {
            type: String,
            value: "#FFFFFF"
        },
        showPlaceholder: {
            type: Boolean,
            value: !0
        },
        title: {
            type: String
        },
        fontColor: {
            type: String,
            value: "#333333"
        }
    },
    data: {},
    computed: {
        barStyle: function(t) {
            var o = e.global.systemInfo;
            return "height:".concat(o.titleHeight, "px;line-height:").concat(o.titleHeight, "px;padding-top:").concat(o.statusBarHeight, "px;");
        },
        titleBarTotalHeight: function(t) {
            var o = e.global.systemInfo;
            return "height:".concat(o.titleBarTotalHeight, "px;");
        }
    },
    lifetimes: {
        attached: function() {},
        detached: function() {}
    },
    methods: {
        backToPrevious: function() {
            getCurrentPages().length > 1 ? wx.navigateBack() : wx.reLaunch({
                url: "/pages/index/index"
            });
        }
    }
});